package Tester;

import org.junit.Before;
import org.junit.Test;
import spaceCraft.ProductInfo;

import static org.junit.Assert.assertTrue;

/**
 * Created by IntelliJ IDEA.
 * User: anton
 * Date: 23.03.12
 * Time: 19:32
 * To change this template use File | Settings | File Templates.
 */
public class ProductInfoTest {

    private String manufacturer;
    private String product;
    private ProductInfo info;

    @Before
    public void setUp() {
        manufacturer = "Teafal";
        product = "Skovorodka";
        info = new ProductInfo(manufacturer, product);
    }

    @Test
    public void testGetProductManufacturer() {
        assertTrue(info.getManufacturer().contains(manufacturer));
    }

    @Test
    public void testGetProductName() {
        assertTrue(info.getName().contains(product));
    }

}
